<%@page import="helpers.UrlHelper"%>
<%
String title = (String) request.getParameter("title");
String description = (String) request.getParameter("description");
String keywords = (String) request.getParameter("keywords");
String ogTitle = (String) request.getParameter("ogtitle");
String ogDescription = (String) request.getParameter("ogdescription");
String ogSiteName = (String) request.getParameter("ogsiteName");
String ogUrl = (String) request.getParameter("ogurl");
String ogImage = (String) request.getParameter("ogimage");

if (title == null || title.isEmpty()) {
	title = "Check Web Tool";
}

if (description == null || description.isEmpty())
	description = "Free online network tools, including dns, whois, google page rank, ip location, check adsense sandbox, unminify js, check speed, expire domain, alexa traffic, whois ip, google safe browsing, check value, order keyword, html tag counter, link extractor, http header, server status, encode/decode url...";

if (keywords == null || keywords.isEmpty())
	keywords = "check web tool,check tool,dns,whois,google page rank,ip location,check adsense sandbox,unminify js,check speed,expire domain,alexa traffic,whois ip,google safe browsing,check value,order keyword,html tag counter,link extractor,http header,server status,encode/decode url";

if (ogTitle == null || ogTitle.isEmpty())
	ogTitle = title;

if (ogDescription == null || ogDescription.isEmpty())
	ogDescription = description;

if (ogSiteName == null || ogSiteName.isEmpty())
	ogSiteName = title;


if (ogUrl == null)
	ogUrl = UrlHelper.getServerUrl(request);

if (ogImage == null)
	ogImage = "http://immediatenet.com/t/t_a?Size=1024x768&URL=" + UrlHelper.getDomainServer(request);

%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="<%=description.replaceAll("[\"\']+", "")%>" >
<meta name="Keywords" content="<%=keywords.replaceAll("[\"\']+", "")%>" >
<meta itemprop="name" content="<%=ogTitle.replaceAll("[\"\']+", "")%>" />    
<meta itemprop="description" content="<%=ogDescription %>" />
<meta property="og:site_name" content="<%=ogSiteName %>" >
<meta property="og:title" content="<%=ogTitle.replaceAll("[\"\']+", "")%>" >
<meta property="og:url" content="<%=ogUrl%>" >
<meta property="og:image" content="<%=ogImage%>" >
<meta property="og:description" content="<%=ogDescription %>" >
<title><%=title%></title>

<link rel="stylesheet" type="text/css" href="/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="/css/style.css" />
<script type='text/javascript' src='/js/jquery.min.js'></script>
<script src="/js/bootstrap.min.js"></script>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- css3-mediaqueries.js for IE less than 9 -->
<!--[if lt IE 9]>
    <script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
</head>

<body>
	<div id="master" class="container">
		
        <!-- header
        ================================================== -->
        <header>
			<h1 class="content-center"><a href="/">Check Web Tool</a></h1>
            <p>Free online network tools, including dns, whois, google page rank, ip location, check adsense sandbox, unminify js, check speed, expire domain, alexa traffic, whois ip, google safe browsing, check value, order keyword, html tag counter, link extractor, http header, server status, encode/decode url...</p>
            
        </header>
        
        <!-- content
        ================================================== -->
		<section id="mainContent">